<template>
  <h1>App</h1>
  <ul>
    <li>
      <RouterLink to="/home">Home</RouterLink>
    </li>
    <li>
      <RouterLink to="/cart">Cart</RouterLink>
    </li>
    <li>
      <RouterLink to="/shop/100">Shop/100</RouterLink>
    </li>
  </ul>


  <RouterView></RouterView>
</template>

<script setup>

import { onMounted } from 'vue';

import { useShopStore } from "./store/s1.js";

const shopStore = useShopStore();

onMounted(() => {
  shopStore.getLists();
});
</script>

<style></style>